package com.example.login.api

import com.example.http.CommonHttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class AccountApiModel {

    @Provides
    @Singleton
    fun getAccountApiServer(@CommonHttpRetrofitAnnotation retrofit: Retrofit): AccountServerApi = retrofit.create(AccountServerApi::class.java)
}